package com.gnerv.sylvanas.business.manage.model.dto;

import com.gnerv.sylvanas.business.manage.model.bo.ViewBO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author Gnerv LiGen
 */
@Data
public class ViewUpdateDTO {

    private String ukId;
    private String parentUkId;
    private String name;
    private String type;
    private String status;
    private Integer sort;

    private String routeUkId;

    public ViewBO toViewBO() {
        ViewBO viewBO = new ViewBO();
        BeanUtils.copyProperties(this, viewBO);
        return viewBO;
    }
}